package com.jishaokang.dao;

import com.jishaokang.model.dto.Teacher;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by NANA_Final on 2019/6/21.
 */
@Repository
public interface TeacherDAO {
    void insert(Teacher teacher);

    Teacher selectByUserId(int userId);

    void update(Teacher teacher);

    List<Teacher> select(Teacher teacher);

    int selectTotal(Teacher teacher);

    int selectTotalByTeacherNameVague();

    List<Teacher> selectByTeacherNameVague();

    void updateCostPercent(Teacher teacher);
}
